/*******************************************************************************
 * AppDelegate.h
 * ComicsBlog
 *
 * Adrien Bougouin <adrien.bougouin@gmail.com>
 */

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "view_controller/CBPageViewController.h"

// menu elements' size
#define HEADER_WIDTH        337
#define HEADER_HEIGHT       100
#define MENU_BUTTON_WIDTH   111
#define MENU_BUTTON_HEIGHT  111

// menu buttons' image
#define BACKGROUND_IMAGE        @"background.png"
#define HEADER_IMAGE            @"logo.png"
#define BTN_ACTUS_VO_SEL_IMAGE  @"btn_actus_vo_selected.png"
#define BTN_ACTUS_VO_USEL_IMAGE @"btn_actus_vo_unselected.png"
#define BTN_ACTUS_VF_SEL_IMAGE  @"btn_actus_vf_selected.png"
#define BTN_ACTUS_VF_USEL_IMAGE @"btn_actus_vf_unselected.png"
#define BTN_RDV_SEL_IMAGE       @"btn_rdv_selected.png"
#define BTN_RDV_USEL_IMAGE      @"btn_rdv_unselected.png"
#define BTN_ECRANS_SEL_IMAGE    @"btn_ecrans_selected.png"
#define BTN_ECRANS_USEL_IMAGE   @"btn_ecrans_unselected.png"
#define BTN_GOODIES_SEL_IMAGE   @"btn_goodies_selected.png"
#define BTN_GOODIES_USEL_IMAGE  @"btn_goodies_unselected.png"
#define BTN_TRASHBAG_SEL_IMAGE  @"btn_trashbag_selected.png"
#define BTN_TRASHBAG_USEL_IMAGE @"btn_trashbag_unselected.png"

// menu buttons' selector
#define BTN_ACTUS_VO_SEL @selector(openActusVOPage)
#define BTN_ACTUS_VF_SEL @selector(openActusVFPage)
#define BTN_RDV_SEL      @selector(openRDVPage)
#define BTN_ECRANS_SEL   @selector(openEcransPage)
#define BTN_GOODIES_SEL  @selector(openGoodiesPage)
#define BTN_TRASHBAG_SEL @selector(openTrashbagPage)

@interface AppDelegate : NSObject<UIApplicationDelegate> {
  @private
    UIWindow *_window;
    UIViewController *_menuViewController;
}

- (void) createMenu;
- (void) backToMenu;
- (void) openPageForCategory:(NSUInteger) category;
- (void) openActusVOPage;
- (void) openActusVFPage;
- (void) openRDVPage;
- (void) openEcransPage;
- (void) openGoodiesPage;
- (void) openTrashbagPage;

@end

